import request from '@/utils/request'

// 聊天API(不基于会话上下文)
export function streamChat(question, memoryId) {
  return request({
    url: '/api/chat/stream',
    method: 'get',
    params: {
      question: question,
      memoryId: memoryId
    }
  })
}

// 基于会话上下文的聊天API
export function streamChatWithContext(question, conversationId) {
  return request({
    url: `/api/chat/stream/conversation/${conversationId}`,
    method: 'get',
    params: {
      question: question
    }
  })
} 